from sqlalchemy import String, BigInteger
from sqlalchemy.dialects.mysql import INTEGER, DATETIME

from shop.model import db


class UserBrowse(db.Model):
    __tablename__ = 'user_collection'

    id = db.Column(INTEGER(11), primary_key=True)
    user_id = db.Column(INTEGER(13), index=True)
    goods_info = db.Column(String(4096))
    create_time = db.Column(DATETIME)
    goods_id = db.Column(BigInteger, default=0, index=True)
